home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / jam / jamdisk7 / inc9110b.lzh / include / setjmp.h < prev    next >
C/C++ Source or Header  |  1991-07-28  |  536b  |  30 lines

  1. /*
  2.  * setjmp.h
  3.  */
  4.  
  5. /*
  6.  * 3.3.91 sjw; declaration for pdc/amiga
  7.  * 10.4.91 sjw; fix jmp_buf dec for missing 'struct'
  8.  * 11.4.91 sjw; jmp_buf gots ta be a pointer type somehow
  9.  * 28.7.91 sjw; yeah, but let's do it the industry-standard way
  10.  */
  11.  
  12. #ifndef __SETJMP_H__
  13. #define __SETJMP_H__
  14.  
  15. struct jmpBufStruct {
  16.         long sp;
  17.         long d2, d3, d4, d5, d6, d7;
  18.         long a2, a3, a4, a5, a6, a7;
  19. };
  20.  
  21. typedef struct jmpBufStruct jmp_buf[1];
  22.  
  23. int setjmp(jmp_buf env);
  24.  
  25. void longjmp(jmp_buf env, int val);
  26.  
  27. #endif /* __SETJMP_H__ */
  28.  
  29.  
  30.